/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Excersize2_Swing;
import javax.swing.undo.AbstractUndoableEdit;
/**
 *
 * @author אלירן
 */
abstract public class SwingCommand  {
    public  static enum DO_OR_UNDO {DO , UNDO} 
    protected DO_OR_UNDO do_or_undo ;
    protected BattleshipGameJFrame referBattleshipGameJFrame ;
    abstract void RevertCommand ( );

    public SwingCommand(DO_OR_UNDO do_or_undo, BattleshipGameJFrame referBattleshipGameJFrame) {
        this.do_or_undo = do_or_undo;
        this.referBattleshipGameJFrame = referBattleshipGameJFrame;
    }
    
}
